home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / AMOSList / AMOSLIST / text0180.txt < prev    next >
Encoding:
Text File  |  1998-04-01  |  528 b   |  14 lines

  1. >Don't use something like this: it repeats 128^2 times the same operations,
  2. >even if the data are already sorted.
  3. >You can better think about a loop with a flag: if the datas are sorted,
  4. >exit from the loop.
  5.  
  6.  
  7. Yeah, sorry about that.  I'm not great with sorting algorithms.  I've been
  8. told that a flag would be a good idea, but I'm not sure how to implement it.
  9. How about an updated algorithm?  It'd come in handy to me and probably a
  10. load of others. (or I might be the only one who can't figure out how to sort
  11. properly :( )
  12.  
  13.  
  14.